package com.wyy.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("resource")
public class Resource {
    @TableId(value = "reid", type = IdType.AUTO)
    private Long reId;
    private String resourceName;
    @TableField(exist = false)
    private List<Role> roles;

}
